package com.zdxlz.desensitize.core;

import com.zdxlz.desensitize.domain.DesensitizeRule;
import com.zdxlz.desensitize.domain.DesensitizeRuleDto;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 获取脱敏规则
 */
public interface IDesensitizeService {
    /**
     * 获取当前用户角色
     */
    List<String> getRoles(HttpServletRequest request);
    /**
     * 获取当前查询用户脱敏规则
     */
    List<DesensitizeRule> getRules(List<String> roles);

    /**
     * 获取当前查询用户脱敏规则
     */
    List<DesensitizeRuleDto> getRuleDtos(List<String> roles,String requestUri);
}
